/**
 * “订单管理”相关接口
 */
import Http from 'utils/request'
const context = process.env.VUE_APP_CONSOLE_PATH

/**
 * 订单列表
 */
export function omsOrderListApi(data) {
  return Http.fetch(context + '/oms/orderList', data, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 订单评价
 */
export function omsQueryReviewInfoApi(data) {
  return Http.fetch(context + '/oms/queryReviewInfo', data, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 隐藏/显示评价信息
 */
export function omsUpdateReviewInfoApi(data) {
  return Http.fetch(context + '/oms/updateReviewInfo', data, {
    method: 'post',
    hasErrMsg: true
  })
}
